package com.order.dao;

import com.order.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDao {
    @Select("select order.* from order where user_id = #{userId}")
    List<Order> selectOrder(@Param("userId") int userId);
}
